﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UniversaleMain.Master" AutoEventWireup="true" CodeBehind="DisplayProductForVendor.aspx.cs" Inherits="FYPDemo.WebForm5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:DropDownList ID="ddlCategory" runat="server"></asp:DropDownList>
    <asp:Button ID="btnSearch" runat="server" Text="Search" 
        onclick="btnSearch_Click" />

<asp:ListView ID="ListView1" runat="server" DataKeyNames="ID"
            GroupItemCount="4">
            <GroupTemplate>
                    <tr ID="itemPlaceholderContainer" runat="server">
                        <td ID="itemPlaceholder" runat="server">
                        </td>
                    </tr>
            </GroupTemplate>
            <ItemTemplate>
                <td id="Td1" runat="server" style='width: 230px'>
                    <table id="Table1" runat="server">
                        `<tr id="Tr1" runat="server">
                            <td id="Td2" runat="server">
                            <a href='VendorEditProduct.aspx?ID=<%# Eval("ID") %>'>
                                <img id="Img1" runat="server" src='<%# Eval("ImagePath") %>' style='height: 140px; width: 140px ; border-color:transparent black' alt='' />
                                </a>
                            </td>
                        </tr>
                        <tr id="Tr3" runat="server">
                            <td id="Td4" runat="server">
                            <label>Name:</label>
                                <%# Eval("ProductName") %>
                            </td>
                        </tr>
                        <tr id="Tr4" runat="server">
                            <td id="Td5" runat="server">
                            <label>Prices:</label>
                                RM <%# Eval("UnitPrice") %>
                            </td>
                        </tr>

                        <tr id="Tr2" runat="server">
                            <td id="Td3" runat="server">
                                <asp:Button ID="btnDelete" runat="server" CommandArgument='<%#Eval("ID") %>' Text="Deactivated" CssClass="buttonbg" />
                            </td>
                        </tr>
                        <tr id="tr10" runat="server">
                        <td id="td10" runat="server">
                         </td>
                        </tr>
                    </table>
                </td>
            </ItemTemplate>
            <LayoutTemplate>
                <table id="Table2" runat="server">
                    <tr id="Tr5" runat="server">
                        <td id="Td6" runat="server">
                            <table ID="groupPlaceholderContainer" runat="server" border="0" style="">
                                    <tr ID="groupPlaceholder" runat="server">
                                    </tr>
                            </table>
                        </td>
                    </tr>
                    <tr id="Tr1" runat="server">
                            <td id="Td1" runat="server" style=" text-align:center;">
                                <asp:DataPager ID="DataPager1" runat="server" PageSize="16">
                                    <Fields>
                                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                            ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                        <asp:NumericPagerField />
                                        <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                                            ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                    </Fields>
                                </asp:DataPager>
                            </td>
                        </tr>
                </table>
            </LayoutTemplate>
        </asp:ListView>
        <br />
</asp:Content>
